package order.dao;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import resgistor.VideoOrder;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
@Repository
public interface OrderDao {

     void addOrder(@Param("videoTitle") String videoTitle, @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8") @Param("createTime") LocalDateTime createTime);

     List<VideoOrder> searchOrder(@Param("id") Integer id);

    List<VideoOrder> searchOrder2(@Param("title") String title);
}
